var http = require('http');
http.createServer(function(request, response){
	response.writeHead(200, {'Content-Type':'text/html;charset=utf-8'});
	if(request.url !== '/favicon.ico'){	//清除第2此访问 (不用框架时，必写，防止向服务器发送第二次请求)
		console.log('访问');
		response.write('hello,world');
		response.end('hello,世界');	//不写则没有http协议尾,但写了会产生两次访问
	}



}).listen(8000);
console.log('Server runnint at http://127.0.0.1:8000/');